package com.okaixz.client.controller;


import com.okaixz.client.model.domain.UserFeedback;
import com.okaixz.client.service.IUserFeedbackService;
import com.okaixz.common.annotation.OpLog;
import com.okaixz.common.client.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author cdz
 * @since 2025-08-20
 */
@RestController
@RequestMapping("/kb/feedback")
public class UserFeedbackController {

    @Autowired
    private IUserFeedbackService userFeedbackService;

    @PostMapping("/add")
    @OpLog(opType = "", opDesc = "提交反馈信息活举报信息")
    public Result<Boolean> addFeedback(UserFeedback userFeedback) {
        boolean result=userFeedbackService.addFeedback(userFeedback);
        return Result.success(result);
    }

}
